package com.victor.entity.city;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.victor.entity.comments.Comments;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 城市介绍
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "c_cityintroduce")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CityIntroduce {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "c_id", unique = true, nullable = false, length = 11)
	private Integer c_id;// 编号,

	@Column(name = "c_name", length = 50)
	private String c_name;// 城市名称

	@Column(name = "c_inprovince", length = 50)
	private String c_inprovince;// 所属省份

	@Column(name = "c_coreintroduce", length = 50)
	private String c_coreintroduce;// 城市导语

	@Column(name = "c_voiceintroduce", length = 50)
	private String c_voiceintroduce;// 语音介绍(中文)

	@Column(name = "c_voiceintroduce_english", length = 50)
	private String c_voiceintroduce_english;// 语音介绍（英文）

	@Column(name = "c_introduce", length = 5000)
	private String c_introduce;// 简介
	
	@Column(name = "video", length = 50)
	private String video;// 视频
	
	@Column(name = "photo", length = 50)
	private String photo;// 封面图片
	
	@Column(name = "qjphoto", length = 50)
	private String qjphoto;// 360全景图

	@Transient
	private List<CityIntroducePhoto> photoslist;
	
	@Transient
	private String type;//登陆人的类型
	
	@Transient
	private String adminid;//登陆人的id
	
	@Transient 
	private List<Comments> comments;//评论
	
	@Transient
	private String citypraise;//城市点赞数
	
	@Transient
	private String ifcitypraise;//是否点赞城市
	
	@Transient
	private String ifcollections;//是否收藏城市
	
	@Transient
	private String forwardcount;//转发数

}
